<?php

namespace Dreamcat\ConfigClient\Popo;

/**
 * nacos的权限配置信息
 * @author vijay
 */
class NacosAuthorization
{
    /** @var string nacos用户名 */
    private $userName;
    /** @var string nacos密码 */
    private $password;

    /**
     * @return string nacos用户名
     */
    public function getUserName(): string
    {
        return $this->userName;
    }

    /**
     * @param string $userName nacos用户名
     * @return static 当前对象
     */
    public function setUserName(string $userName): NacosAuthorization
    {
        $this->userName = $userName;
        return $this;
    }

    /**
     * @return string nacos密码
     */
    public function getPassword(): string
    {
        return $this->password;
    }

    /**
     * @param string $password nacos密码
     * @return static 当前对象
     */
    public function setPassword(string $password): NacosAuthorization
    {
        $this->password = $password;
        return $this;
    }
}

# end of file
